/*

G2.H  Interface to plot assembler routines for CGA

(C) 24/8/88  A.Key

*/

#define	G_BLACK		0x0000
#define	G_MAGENTA	0x5555
#define	G_CYAN		0xaaaa
#define	G_WHITE		0xffff

#define	G_COLMIX(a, b)	((a&0x33cc)|(b&0xcc33))

#define	G_0		G_BLACK
#define	G_1		G_COLMIX(G_BLACK,G_CYAN)
#define	G_2		G_COLMIX(G_MAGENTA,G_CYAN)
#define	G_3		G_CYAN
#define	G_4		G_COLMIX(G_MAGENTA,G_BLACK)
#define	G_5		G_MAGENTA
#define	G_6		G_COLMIX(G_WHITE,G_CYAN)
#define	G_7		G_COLMIX(G_WHITE,G_BLACK)

#define	G_8		G_COLMIX(G_BLACK,G_WHITE)
#define	G_9		G_COLMIX(G_CYAN,G_BLACK,)
#define	G_10		G_COLMIX(G_CYAN,G_MAGENTA)
#define	G_11		G_CYAN
#define	G_12		G_COLMIX(G_MAGENTA,G_WHITE)
#define	G_13		G_MAGENTA
#define	G_14		G_COLMIX(G_CYAN,G_WHITE)
#define	G_15		G_WHITE
